<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?=$title?></title>
<link href="../css/estilos.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="../css/redmond/jquery-ui-1.8.18.custom.css" rel="Stylesheet" />	
<script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.18.custom.min.js"></script>

</head>
<body>
	
	
	<div id="ingreso">
		<?php echo $heading ?> 
		<ul>
		
			<?php echo form_open('docente/'.$action.'/'.$registro->getId());?>
			
			<p>
				<label for="persona"> Persona: </label>
				<input type="text" id="tx_persona" name="tx_persona" maxlength="50" size="40" value="<?php echo $registro->getIdpersona()->getId()?>">
				</input>
				<br></br>
				<label for="tipodocente"> TipoDocente: </label>
				<input type="text" id="tx_tipodocente" name="tx_tipodocente" maxlength="50" size="40" value="<?php echo $registro->getIdtipodocente()->getIdtipodocente()?>">
				</input>
				<br></br>
				<label for="legajo"> Legajo: </label>
				<input type="text" id="tx_legajo" name="tx_legajo" maxlength="50" size="40" value="<?php echo $registro->getLegajo()?>">
				</input>
				<br></br>
				<label for="escoordinadorarea"> EsCoordinadorArea: </label>
				<input type="text" id="tx_escoordinadorarea" name="tx_escoordinadorarea" maxlength="50" size="40" value="<?php echo $registro->getEscoordinadorarea()?>">
				</input>
				<br></br>
			</p>
			<?php echo form_submit('action',$submit);?>
			<?php echo form_close();?>
			
		
		</ul>
		
	</div>
	<div id="tabla">
	<div class="tabla">
		<table>
			<thead>
				<tr>
					<th>Id </th>
					<th>IdPersona </th>
					<th>IdTipoDocente </th>
					<th>Legajo </th>
					<th>EsCoordinadorArea </th>
					<th></th>
					<th></th>
				</tr>
			</thead>
			<?php foreach ($result as $item): ?>
			<tr>
				<td><?php echo $item->getId();?> </td>
				<td><?php echo $item->getIdpersona()->getId();?> </td>
				<td><?php echo $item->getIdtipodocente()->getIdtipodocente();?> </td>
				<td><?php echo $item->getLegajo();?> </td>
				<td><?php echo $item->getEscoordinadorarea();?> </td>
				<td class="editar">
					<?php echo anchor('docente/editar/'.$item->getId(),'E')?>
				</td>
				<td class="remove">
					<?php echo anchor('docente/remove/'.$item->getId(),'X')?> 
				</td>
			</tr>
		
		<?php endforeach; ?>
		</table>
	</div>
	</div>
</body>
</html>